<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>100以内的奇数和</title>
		<script type="text/javascript">
			var sum=0;
			for(var i=1; i<100; i+=2){
				sum+=i;
			}
			document.write("100以内的奇数和："+sum);
		</script>
	</head>
	<body>
		<hr />
		<a href="01.html">上一课</a>&nbsp;
		<a href="03.html">下一课</a>
	</body>
</html>

















